<?php
$initTitle = "South Salem High School - Courses";
$style="<link href=\"http://www.southsaxons.com/sshs.css\" rel=\"stylesheet\" type=\"text/css\" /><style>\n .opacityFont array(\n filter:alpha(opacity=75);\n -moz-opacity:.75; \n opacity:.75; \n ) \n .opacity array(\n background-color: #FFF;\n filter:alpha(opacity=75);\n -moz-opacity:.75;\n opacity:.75;\n border: 1px solid #000;\n color: #000;\n )\n </style>";
echo "<HTML><HEAD><TITLE>$initTitle</TITLE>$style";
?>
<script language="javascript">
var list = [];
function makeBubble(id, contents, dep)
{
	var o = "<div id=\""+id+"\" style=\"width:500px;height:300px;background-color:#FF00FF;\">"+contents+"</div>";
	list[id] = [];
	list[id][0] = contents;
	list[id][1] = dep;
	return o;
}
</script>
<?
echo "</HEAD>";
?>
<body>
<?php

$db_host = 'localhost';
$db_user = 'pepgsou_admin';
$db_pwd = '_20pepg09';
$database = 'pepgsou_main';
$table = 'JL';
if (!mysql_connect($db_host, $db_user, $db_pwd))
    die("Can't connect to database");

if (!mysql_select_db($database))
    die("Can't select database");

$id = "1";

$q = mysql_query("SELECT title, dept FROM JL");
echo "<script language=\"javascript\">";
for ($i = 0; $i<mysql_num_rows($q); $i++)
{
	$name = mysql_result($q, $i, "title");
	$dept = mysql_result($q, $i, "dept");
	echo "makeBubble($i, $title, $dept);";

}
echo "</script>";
?>

</body></html>